| Conditions | 3 | 
| Total Lines | 14 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | import { execute } from "../../compiler/func"; | ||
| 4 | /** | ||
| 5 | * Install package | ||
| 6 | * @param pkg | ||
| 7 | */ | ||
| 8 |   static install(pkg: string | any[]) { | ||
| 9 |     if (typeof pkg == "string") { | ||
| 10 |       this.args.push({ install: pkg }); | ||
| 11 |     } else if (Array.isArray(pkg)) { | ||
| 12 |       pkg.forEach(function (item) { | ||
| 13 |         npm.args.push({ install: item }); | ||
| 14 | }); | ||
| 15 | } | ||
| 16 | this.run(); | ||
| 17 | return this; | ||
| 18 | } | ||
| 54 |